#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>

int main()
{
	pid_t pidChild;
	printf("Forking...\n");
	pidChild = Fork();
	if(pidChild<0)
	{
		perror("Fork failed\n");
		return 0;
	}
	else if(pidChild==0){
		printf("I'm the Child\n");
	}
	else printf("I'm the parent\n");
	printf("Why I am printed twice??\n");
	return 0;
}
